<template>
  <div class="home">
    <Header :headerInfo="{notHome:false}" :homeSorllShow="homeSorllShow"/>
    <div class="container-md d-flex justify-content-between my-5" id="main">
      <Articles/>
      <AsideContent/>
    </div>
    <Footer/>
    <Toolbar/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      homeSorllShow:false
    }
  },
  mounted() {
    window.addEventListener('scroll',this.handleScroll)
  },
  methods:{
    handleScroll() {
      if (document.body.scrollTop > 10 || document.documentElement.scrollTop > 10) {
        this.homeSorllShow = true
      }else {
        this.homeSorllShow = false
      }
    },
  },
  beforeDestroy() {
    window.removeEventListener('scroll',this.handleScroll)
  }
}
</script>
<style></style>
